<template>
  <div class="nav-tab">
    <div class="tab-btn" :class="{'active': navActive === 0}" @click="navActive = 0; showDetail = false">当前话题</div>
    <div class="tab-btn" :class="{'active': navActive === 1}" @click="navActive = 1; showDetail = false">我的关注</div>
    <div class="tab-btn" :class="{'active': navActive === 2}" @click="navActive = 2; showDetail = false">最新动态</div>
  </div>

</template>

<script setup lang="ts">
import {ref} from "vue";

const navActive = ref(1);
const showDetail = ref(false);
</script>

<style lang="scss" scoped>
.nav-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20rpx 50rpx 40rpx;
  border-bottom: 1rpx solid rgba(0, 0, 0, 0.08);
  .tab-btn {
    width: 216rpx;
    height: 68rpx;
    border-radius: 36rpx;
    font-size: 32rpx;
    font-weight: 300;
    line-height: 68rpx;
    text-align: center;
    color: #0D3333;
    &.active {
      background: rgba(36, 250, 246, 0.38);
      font-weight: 500;
    }
  }
}
</style>
